namespace Framework.UI
{
	public partial class LoginFrame : UIFrame
	{
		UnityEngine.UI.Button BtnLogin;
		TMPro.TMP_InputField InputUserName;
		protected override void InitScriptBinder()
		{
			BtnLogin = scriptBinder.GetValue() as UnityEngine.UI.Button;
			InputUserName = scriptBinder.GetValue() as TMPro.TMP_InputField;
		}
		
		protected override void RegisterUIEvent()
		{
			BtnLogin.onClick.AddListener(this.OnBtnLoginClicked);
			InputUserName.onEndEdit.AddListener(this.OnInputUserNameEndEdit);
		}
		
		protected override void UnregisterUIEvent()
		{
			BtnLogin.onClick.RemoveListener(this.OnBtnLoginClicked);
			InputUserName.onEndEdit.RemoveListener(this.OnInputUserNameEndEdit);
		}
	}
}
